package org.example.demo3.spring;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("hanxuebaoma")
@Data//@Controller,@Service,@Mapper
public class Car {
    @Value("粤C55555")       //@Value : 为属性赋值
    String id;
    @Value("BMW")
    String brand;
    @Value("600")
    int maxSpeed;

}
